﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register Tagprefix="alerts" Namespace="Alerts_Administration_2010.classes.views.Controls" Assembly="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AlertsOverview.aspx.cs" Inherits="Alerts_Administration_2010.Layouts.AlertsAdministration2010.AlertsOverview" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<style type="text/css">
    .selected-row 
    {
        background-color: #cfcfcf;
    }
</style>
<style type="text/css">
    body #s4-leftpanel
    {
    display: none;
    }
    .s4-ca
    {
    margin-left: 0px;
    }
</style>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAlerts" TypeName="Alerts_Administration_2010.classes.AlertsBLL" />
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetAlertById" UpdateMethod="UpdateAlert" TypeName="Alerts_Administration_2010.classes.AlertsBLL">
        <SelectParameters>
            <asp:ControlParameter ControlID="GridView1" Name="Id" Type="String" PropertyName="SelectedValue" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <table border="0">
        <tr>
            <td valign="top">
                <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" AutoGenerateColumns="false" DataKeyNames="Id" SelectedRowStyle-CssClass="selected-row">
                    <Columns>
                        <asp:BoundField DataField="Title" HeaderText="Alert title" />
                        <asp:BoundField DataField="UserName" HeaderText="User" />
                        <asp:BoundField DataField="List" HeaderText="List" />
                        <asp:BoundField DataField="AlertType" HeaderText="Alert type" />
                        <asp:BoundField DataField="EventType" HeaderText="Event type" />
                        <asp:CommandField ShowSelectButton="true" />
                    </Columns>
                </asp:GridView>
            </td>
            <td valign="top">
                <asp:DetailsView ID="DetailsView1" runat="server" DataKeyNames="Id" DataSourceID="ObjectDataSource2" AutoGenerateEditButton="true" AutoGenerateRows="false">
                    <Fields>
                        <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="true" />
                        <asp:BoundField DataField="Title" HeaderText="Title" />
                        <alerts:RadioButtonField HeaderText="Event type" DataFieldValues="EventTypes" DataField="EventType" />
                        <alerts:AlertFrequencyField HeaderText="Frequency" />
                        <alerts:RadioButtonField HeaderText="Filter" DataFieldValues="TemplateFilters" DataField="Filter" />
                    </Fields>
                </asp:DetailsView>
            </td>
        </tr>
    </table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Alerts Overview
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Alerts Overview
</asp:Content>
